package com.chen.shopping_common.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.shopping_common.pojo.Admin;
import com.chen.shopping_common.pojo.Permission;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

public interface PermissionService {

    //新增权限
    void addPermission(Permission permission);
    //修改权限
    void updatePermission(Permission permission);
    //删除权限
    void deletePermission(Long pid);
    //根据id查询权限
    Permission findPermissionById(Long pid);
    //查询所有权限
    List<Permission> findPermissionAll();
    //分页查询权限
    Page<Permission> findPermissionByPage(int page,int size);

}
